import type {SVGIconProps} from './svgIcon';
import {SvgIcon} from './svgIcon';

interface Props extends SVGIconProps {
  isSolid?: boolean;
}

export function IconStar({isSolid = false, ...props}: Props) {
  return (
    <SvgIcon {...props}>
      {isSolid ? (
        <path d="M7.18 0.49C7.6 -0.12 8.55 -0.07 8.9 0.62L10.77 4.43L14.98 5.04C15.8 5.16 16.12 6.17 15.53 6.75L12.49 9.71L13.21 13.89C13.35 14.71 12.49 15.33 11.76 14.95L8 12.97L4.24 14.95C3.51 15.33 2.65 14.71 2.79 13.89L3.51 9.71L0.47 6.75C-0.12 6.17 0.2 5.16 1.02 5.04L5.22 4.43L7.1 0.62L7.18 0.49Z" />
      ) : (
        <path d="M7.18 0.49C7.6 -0.12 8.55 -0.07 8.9 0.62L10.77 4.43L14.98 5.04C15.8 5.16 16.12 6.17 15.53 6.75L12.49 9.71L13.21 13.89C13.35 14.71 12.49 15.33 11.76 14.95L8 12.97L4.24 14.95C3.51 15.33 2.65 14.71 2.79 13.89L3.51 9.71L0.47 6.75C-0.12 6.17 0.2 5.16 1.02 5.04L5.22 4.43L7.1 0.62L7.18 0.49ZM6.45 5.33C6.31 5.62 6.03 5.83 5.7 5.88L2.24 6.38L4.74 8.82C4.98 9.05 5.09 9.38 5.03 9.7L4.44 13.15L7.53 11.52L7.65 11.47C7.87 11.39 8.13 11.39 8.35 11.47L8.47 11.52L11.56 13.15L10.97 9.7C10.91 9.38 11.02 9.05 11.26 8.82L13.76 6.38L10.3 5.88C9.97 5.83 9.69 5.62 9.55 5.33L8 2.19L6.45 5.33Z" />
      )}
    </SvgIcon>
  );
}
